package com.molin.conllectionTest;

import java.util.ArrayList;
import java.util.Arrays;

public class Demo1 {
    public static void main(String[] args) {
        int [] arr1={1,2,3};
        String[] arr2={"ab","cd","ef"};
        System.out.println(Arrays.toString(arr1));
        System.out.println(Arrays.toString(arr2));

        ArrayList<String> list1=new ArrayList<>();
//        ArrayList<int> list2=new ArrayList<int>(); //集合不能存基本数据类型
        ArrayList<Integer> list2=new ArrayList<>();
        list2.add(2);
        list2.add(3);
        list2.add(4);
        list2.add(5);
        list2.add(6);
        System.out.println(list2);
    }
}
